package com.demo.spring_demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 页面跳转控制类
 */
@Controller
public class PageRedirectController {
    /**
     * 主界面跳转其他界面
     * login.html 内操作
     */
    //1、跳转主界面
    @GetMapping("/index")
    public String index_index() {
        return "index";
    }
    //2、跳转profile
    @GetMapping("/pages-profile")
    public String index_profile() {
        return "pages-profile";
    }
    //3、跳转table-basic
    @GetMapping("/table-basic")
    public String index_table_basic() {
        return "table-basic";
    }
    //4、跳转icon-material
    @GetMapping("/icon-material")
    public String index_icon_material() {
        return "icon-material";
    }
    //5、跳转map-google
    @GetMapping("/map-google")
    public String index_map_google() {
        return "map-google";
    }
    //6、跳转pages-blank
    @GetMapping("/pages-blank")
    public String index_pages_blank() {
        return "pages-blank";
    }
    //7、跳转pages-error-404
    @GetMapping("/pages-error-404")
    public String index_pages_error_404() {
        return "pages-error-404";
    }
    //8、跳转user
    @GetMapping("/user")
    public String user() {
        return "/front/index";
    }
    //9、跳转到注册页面
    @GetMapping("/register_html")
    public String register() {
        return "register";
    }
    //10、跳转到忘记页面
    @GetMapping("/forgot-password")
    public String forgot_password() {
        return "forgotPassword";
    }
    //11、


}
